﻿#include <QCoreApplication>

#include "concreteproducta.h"
#include "concretefactory.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    Factory* factory = new ConcreteFactory();
    AbstractProductA* product = factory->createProduct();

    product->use();
    delete product;
    delete factory;

    return a.exec();
}
